export interface Administrator {
    username: string,
    pass: string,
    verifyCode: string,
    token: string
}

export interface VerifyCode {

    imageCode: string,
    token: string
}

export interface Menu {
    id: number,
    name: string,
    ico: string,
    url: string,
    pid: number,
    sort: number,
    checked: number,
    postion: string,
    children: Menu[]
}
export interface LoginResponse {
    token: string,
    menu: Menu[],

}
export interface IMenu{
    id:number
}

export interface IRole{
   
        id?: number,
        name?: string,
        menus?: IMenu[] | null
   
}

export interface RoleReponse {
    
        counts: number,
        pageCounts:number,
        pageSize: number,
        list: IRole[]
    
}

export interface RoleParams {
    page: number,
    psize: number
}

export interface MenuItem {
    id: number;
    name: string;
    ico: string | null;
    url: string | null;
    pid: number;
    sort: number;
    checked: number;
    postion: string | null;
    children: MenuItem[] | null;
  }
  
  // 完整响应数据类型
  export interface MenuResponse {
    list: MenuItem[];
  }
 